﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.Composition;

namespace GFE.SharePoint.Attributes
{
    [AttributeUsage(AttributeTargets.Class,
                    AllowMultiple = false, Inherited = false)]
    public class GFEModelFactoryAttribute : Attribute 
    {
        Type _ModelFactoryType {get; set; } 

        public GFEModelFactoryAttribute()
            : this((Type)null)
        {
        }

        public GFEModelFactoryAttribute(Type modelFactoryType) 
        {
            _ModelFactoryType = modelFactoryType;
        }

        public Type ModelFactoryType
        {
            get { return this._ModelFactoryType; }
        }

    }

}

